//
//  SinaHomeWebViewController.swift
//  MySinaWeiBoSwiftProject
//
//  Created by apple on 2016/11/26.
//  Copyright © 2016年 WangChen. All rights reserved.
//

import UIKit

class SinaHomeWebViewController: SinaBaseViewController {

    var urlStr: String?
    
    let webView = UIWebView()
    
    override func viewDidLoad() {
        
        super.viewDidLoad()
        view.addSubview(webView)
        webView.snp.makeConstraints { (make) in
            make.top.equalTo(view).offset(64)
            make.leading.trailing.bottom.equalTo(view)
        }
        loadPage()
    }
    
    private func loadPage(){
        guard let urlString = urlStr else {
            return
        }
        let url = URL(string: urlString)
        let request = URLRequest(url: url!)
        webView.loadRequest(request)
    }
  

}
